//bubble_sort.c
#include<stdbool.h>
void bubble_sort(int* nums,int n)
{
   for(int i = 0;i<n;i++)
   {
     for(int j = i+1;j<n;j++)
     {
         if(nums[i]>nums[j])
         {
              int tmp = nums[i];
              nums[i] = nums[j];
              nums[j] = tmp;
         }
     }

   }
}
